<template>
    <div class="container">


        <div class="head">
            <div class="title">{{ title }}</div>
            <p>{{ date }}</p>
        </div>

        <div class="main" v-html="content"></div>


    </div>
</template>

<script>


    export default {
        name: "article",
        props: {
            title: {
                type: String,
                default: ''
            },
            date: {
                type: String,
                default: ''
            },
            content: {
                type: String,
                default: ''
            }
        }
    }
</script>

<style scoped lang="scss">
    .container {
        padding: 16px;

        .head {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 116px;
            border-bottom: 1px solid #000000;
            font-size: 14px;
            color: #666666;

            .title {
                color: #333333;
                font-size: 30px;
                margin-bottom: 18px;
            }
        }

        .main {
            padding: 30px 12px;
        }
    }

</style>